//
//  SelectCuisinesView.h
//  OrderSeat
//
//  Created by wangwei on 13-10-23.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SelectCuisinesViewDelegate

@optional
    - (void)selectCuisinesFinished:(NSDictionary *)selectedData;

@end

@class SelectCuisinesSource;
@interface SelectCuisinesView : UIView

@property (nonatomic, weak) id<SelectCuisinesViewDelegate> delegate;

@property (nonatomic, strong) UITableView *cuisinesTable;
@property (nonatomic, strong) SelectCuisinesSource *dataSource;
@property (nonatomic, assign) CGFloat viewHeight;

- (void)showOrVisible;
- (void)hidden;
- (void)resetAttributesWithTop:(CGFloat)top;

@end

@interface SelectCuisinesSource : BaseDataSource<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, strong) SelectCuisinesView *view;
@property (nonatomic, strong) NSMutableArray *cuisinesList;

- (id)initWithView:(id)view;

@end
